package mapper;

import pojo.Restaurant;
import pojo.Subscribe;

import java.util.List;
import java.util.Map;

public interface SubscribeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Subscribe record);

    int insertSelective(Subscribe record);

    Subscribe selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Subscribe record);

    int updateByPrimaryKey(Subscribe record);

    List<Restaurant> selectByUserId(Map<String, Object> map);

    Subscribe selectByUserIdAndRestId(Subscribe record);

    int selectTotal(Map<String, Object> map);

}
